package com.zbkj.front.controller;

import com.zbkj.common.model.UserAiVideoUrl;
import com.zbkj.common.page.CommonPage;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.result.CommonResult;
import com.zbkj.service.service.UserAiVideoUrlService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户ai试穿视频地址表 前端控制器
 */
@Slf4j
@RestController
@RequestMapping("api/front/ai/video")
@Api(tags = "用户ai试穿视频地址")
public class UserAiVideoUrlController {

    @Autowired
    private UserAiVideoUrlService userAiVideoUrlService;


    @ApiOperation(value = "获取用户ai生成的视频地址")
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public CommonResult<CommonPage<UserAiVideoUrl>> getVideoUrlList(@RequestBody @Validated PageParamRequest pageParamRequest) {
        return CommonResult.success(CommonPage.restPage(userAiVideoUrlService.getVideoUrlList(pageParamRequest)));
    }

}



